test(sdk): EVM clear-sign runtime-signer test train + offline parity gate#340
Merged
Merged
Conversation
…gate Recovers the keepkey-sdk clear-sign tests that had been sitting untracked. Complements the loadClearsignSigner SDK method already on develop (#337); these are the tests that exercise it. - _clearsign.js: shared blob builder — reproduces python-keepkey @1545299's signed-metadata format byte-for-byte (deterministic tx + real legacy sighash, CI test key slot 3). - clearsign-offline-parity.js: no-device gate — 51/51 catalog flows match python's REFERENCE_BLOB_SNAPSHOTS (blob sha256+len + JS sighash). The cheapest guard against serializer drift; verified 51/51 green. - evm-clearsign/loadsigner-sign-flows.js + clearsign-signer-flows.js: on-device train — load CI signer via /eth/clearsign/load-signer, then sign flagship flows with the bound metadata blob (self + pioneer modes). - evm-clearsign/relay-v2-schema-flow.js: relay v2 static-schema flow. - fixtures/clearsign-golden.json: golden vectors dumped from python-keepkey (test key, slot 3, 51 flows + snapshots).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recovers the
keepkey-sdkclear-sign tests that had been sitting untracked on disk. Complements theloadClearsignSignerSDK method already on develop (#337) — these are the tests that exercise it. All test-only, no source changes._clearsign.js— shared blob builder; reproduces python-keepkey @1545299's signed-metadata format byte-for-byte (deterministic tx + real legacy sighash, CI test key slot 3).clearsign-offline-parity.js— no-device gate: 51/51 catalog flows match python'sREFERENCE_BLOB_SNAPSHOTS(blob sha256+len + JS sighash). Cheapest guard against serializer drift.evm-clearsign/loadsigner-sign-flows.js+clearsign-signer-flows.js— on-device train: load the CI signer via/eth/clearsign/load-signer, then sign flagship flows with the bound metadata blob (self + pioneer modes).evm-clearsign/relay-v2-schema-flow.js— relay v2 static-schema flow.fixtures/clearsign-golden.json— golden vectors dumped from python-keepkey (test key, slot 3, 51 flows + snapshots).Test plan
node tests/clearsign-offline-parity.js→ 51/51 green (no device)